<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>裹站-快递员下载页</title>
<link rel="stylesheet" href="css/style.css">
  <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
  <script src="data/json.js"></script>
  <script type="text/javascript">
//    function loadXMLDoc()
//    {
//      var xmlhttp;
//      var response;
//      if (window.XMLHttpRequest)
//      {// code for IE7+, Firefox, Chrome, Opera, Safari
//        xmlhttp=new XMLHttpRequest();
//      }
//      else
//      {// code for IE6, IE5
//        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
//      }
//      xmlhttp.onreadystatechange=function()
//      {
//        if (xmlhttp.readyState==4 && xmlhttp.status==200)
//        {
//          response=xmlhttp.responseText;
//          console.log(response, 'response')
//        }
//      }
//      xmlhttp.open("GET","/data/json.js",true);
//      xmlhttp.send();
//    }
//    loadXMLDoc();
  </script>
<!-- Stylesheet -->
</head>
<div id="myDiv"></div>
  <!--<div class="link-btn"></div>-->
  <div class="link-btn">
    <a class="link-item item_one" href="download-user.html"></a>
    <a class="link-item item_two" href="download-courier.html"></a>
    <a class="link-item item_mail" href="download-mail.html"></a>
    <a class="link-item item_help on" href="download-help.html"></a>
  </div>
  <div class="help-bg">
    <div class="item-wrap">
      <div style="margin-top: 200px;" class="form-input">
        <input class="input-inner" type="text" placeholder="请输入您要查找的内容">
        <div class="icon-search">
          <img src="images/ico-search.png" width="20" alt="">
        </div>
      </div>
    </div>
  </div>
  <div class="section item-wrap" id="container">
    <!--<div class="box">
      <div class="item-box">
        <h3>账号注册与登录</h3>
        <p>账号注册与登录</p>
        <p>账号注册与登录</p>
        <p>账号注册与登录</p>
        <span><a href="download-help-detail.html"> 更多>> </a></span>
      </div>
      <div class="item-box right">
        <h3>账号注册与登录</h3>
      </div>
    </div>
    <div class="box">
      <div class="item-box">
        <h3>账号注册与登录</h3>
        <p>账号注册与登录</p>
        <p>账号注册与登录</p>
        <p>账号注册与登录</p>
        <span><a href=""> 更多>> </a></span>
      </div>
      <div class="item-box right">
        <h3>账号注册与登录</h3>
      </div>
    </div>-->
  </div>
  <div class="item-wrap">
    <p style="text-align: center;margin-bottom: 50px">Copyright &nbsp; 2017 窝家 版权所有</p>
  </div>
<!-- JavaScript -->
<script>
  $(function(){
    getData()
  })
  function getData() {
    var html = '';
    for (var i = 0; i < json.length; i++) {
      if (i % 2 !== 0) {
        html += '<div class="item-box right">';
        html += '<h2>' + json[i].classify + '</h2>';
        for (var j = 0; j < json[i].list.length; j++) {
          var tmp = json[i].list[j].title
          html += '<p>';
          html += '<a href="' + encodeURI('/download-help-detail.html?classifyNum=' + i + '&' + 'titleNum=' + j +  '&' + 'title=' + tmp) +'">';
          html += tmp;
          html += '</a>'
          html += '</p>';
        }
        html += '<span class="more">'
        html += '<a href="' + '/download-help-list.html?classifyNum=' + i + '" id="' + 'classify' + i + '"> 更多>> </a>'
        html += '</span>';
        html += '</div>';
        html += '</div>';
      } else {
        html += '<div class="box">';
        html += '<div class="item-box">';
        html += '<h2>' + json[i].classify + '</h2>';
        for (var j = 0; j < json[i].list.length; j++) {
          var tmp = json[i].list[j].title
          html += '<p>';
          html += '<a href="' + encodeURI('/download-help-detail.html?classifyNum=' + i + '&' + 'titleNum=' + j +  '&' + 'title=' + tmp) +'">';
          html +=  tmp;
          html += '</a>';
          html += '</p>';
        }
        html += '<span class="more">'
        html += '<a href="' + '/download-help-list.html?classifyNum=' + i + '" id="' + 'classify' + i + '"> 更多>> </a>'
        html += '</span>';
        html += '</div>';
//      html+='</div>';
      }
      $('#container').html(html);
      // $('#classify0').click(function () {
      //   // $(this).children('a').attr('href','/download-help-detail.html')
      //   location.href = "/download-help-detail.html?id="+ $(this).attr('id');
      // })
    }
  }
</script>
</body>
</html>